/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.property;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购属性Entity
 * @author 罗天文
 * @version 2018-05-15
 */
public class HkShopPropertyValue extends DataEntity<HkShopPropertyValue> {
	
	private static final long serialVersionUID = 1L;
	private HkShopProperty property;		// 属性id 父类
	private String rank;		// 序号
	private String content;		// 内容
	
	public HkShopPropertyValue() {
		super();
	}

	public HkShopPropertyValue(String id){
		super(id);
	}

	public HkShopPropertyValue(HkShopProperty property){
		this.property = property;
	}

	@Length(min=0, max=32, message="属性id长度必须介于 0 和 32 之间")
	public HkShopProperty getProperty() {
		return property;
	}

	public void setProperty(HkShopProperty property) {
		this.property = property;
	}
	
	@Length(min=0, max=11, message="序号长度必须介于 0 和 11 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
	@Length(min=0, max=100, message="内容长度必须介于 0 和 100 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}